import {
  get,
  post,
  //postForm,
  del
} from '@/utils/http'
const packageName = `http://124.70.196.178:8080/intelligent_control_webservice_eeds`

/**
 * 环保设备
 */
// 获取全部环保设备
export function getEnvironmentProtectionDevices(params) {
  return get(`${packageName}/pc/environmentProtectionDevice/getEnvironmentProtectionDevices`, params)
}
// 获取环保设备列表
export function getEnvironmentProtectionDeviceList(params) {
  return get(`${packageName}/pc/environmentProtectionDevice/getEnvironmentProtectionDeviceList`, params)
}
// 获取环保设备详情
export function getEnvironmentProtectionDevice(params) {
  return get(`${packageName}/pc/environmentProtectionDevice/getEnvironmentProtectionDevice`, params)
}
// 删除环保设备
export function delEnvironmentProtectionDevice(params) {
  return del(`${packageName}/pc/environmentProtectionDevice/delEnvironmentProtectionDevice`, params)
}
// 保存环保设备
export function saveEnvironmentProtectionDevice(params) {
  return post(`${packageName}/pc/environmentProtectionDevice/saveEnvironmentProtectionDevice`, params)
}

/**
 * 环保设备参数
 */
// 获取全部环保设备参数
export function getEnvironmentProtectionDeviceParams(params) {
  return get(`${packageName}/pc/environmentProtectionDeviceParam/getEnvironmentProtectionDeviceParams`, params)
}
// 获取环保设备参数列表
export function getEnvironmentProtectionDeviceParamList(params) {
  return get(`${packageName}/pc/environmentProtectionDeviceParam/getEnvironmentProtectionDeviceParamList`, params)
}
// 获取环保设备参数详情
export function getEnvironmentProtectionDeviceParam(params) {
  return get(`${packageName}/pc/environmentProtectionDeviceParam/getEnvironmentProtectionDeviceParam`, params)
}
// 删除环保设备参数
export function delEnvironmentProtectionDeviceParam(params) {
  return del(`${packageName}/pc/environmentProtectionDeviceParam/delEnvironmentProtectionDeviceParam`, params)
}
// 保存环保设备参数
export function saveEnvironmentProtectionDeviceParam(params) {
  return post(`${packageName}/pc/environmentProtectionDeviceParam/saveEnvironmentProtectionDeviceParam`, params)
}
